package com.example.sjjg.utest.model

import android.app.IntentService
import android.content.Intent

class MainIntentService : IntentService("Work") {
    var status = false
    override fun onHandleIntent(intent: Intent?) {
        status = true
    }

    override fun onCreate() {
        super.onCreate()
    }

    override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
        return super.onStartCommand(intent, flags, startId)
    }

    override fun onDestroy() {
        super.onDestroy()
        status = false
    }
}